package web;


import java.util.ArrayList;

public class Feed{
	private Feed(){
		
	}

	static Feed feed;
	
	public static Feed getFeed(){
		if(feed==null){
			feed=new Feed();
			feed.addFeed("123");
			feed.addFeed("456");
		}
		return feed;

	}
	
	
	ArrayList feeds=new ArrayList();
	public void addFeed(String html){
		feeds.add(html);
	}
	
	public String getFeeds(){
		String html=new String();
		for(int i=0;i<feeds.size();i++){
			html+="<p>"+feeds.get(i)+"</p>";
		}
		return html;
		
	}
}
	
		
	
